<template>
  <div id="app">
    <!--keep-alive:该组件可以缓存DOM，它会自动触发activated生命周期钩子函数-->
    <keep-alive>
      <!--设置路由出口-->
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>

</style>
